= header_tag('用户详细')

.row
  .form-horizontal
    .form-group
      = label_tag :email, '邮箱', class: 'control-label col-md-2'
      %p.form-control-static
        = @admin.email
    .form-group
      = label_tag :name, '姓名', class: 'control-label col-md-2'
      %p.form-control-static
        = @admin.name
    .form-group
      = label_tag :roles, '权限', class: 'control-label col-md-2'
      %p.form-control-static
        =  cpanel_admins_roles_name(@admin)

= link_to '编辑', edit_cpanel_admin_path(@admin), class: "btn btn-outline btn-primary"
\|
= link_to '用户列表', cpanel_admins_path, class: "btn btn-outline btn-primary"
